<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<p:dialog xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui" 
	modal="true" width="600" height="300" resizable="false" 
	widgetVar="dialogAddCondicaoPagamento" id="dialogCondicaoPagamento" closable="false"
	appendToBody="true">
	
	<f:facet name="header">
		<h:outputText value="Manter Condição de pagamento" />
	</f:facet>
	
	<h:form id="formAddCondicaoPagamento" prependId="false" >
		<h:panelGrid columns="2" style="padding:5px;">
			<h:outputText value="Código:" />
				<h:outputText value="Condição de pagamento" />
				<h:inputText style="width:100px;" />
				<h:inputText 
					style="width:210px;" required="true"
					requiredMessage="Campo 'Condição de pagamento' é obrigatório."/>
		</h:panelGrid>
		
		<h:panelGrid columns="3" style="padding:5px;">
			<h:outputText value="Taxa de juros" />
				<h:outputText value="Forma de pagamento" />
				<h:outputText value="" />				
				<h:inputText 
					style="width:100px;" required="true"
					requiredMessage="Campo 'Taxa de juros' é obrigatório."/>
				<h:inputText 
					style="width:200px;" required="true"
					requiredMessage="Forma de pagamento é obrigatória."/>
				<p:commandButton icon="ui-icon-search" value="Buscar" onclick="dialogListFormaPagamento.show();" />
		</h:panelGrid>
		
		<h:panelGrid columns="5" style="padding:5px;">
			<h:outputText value="Número" />
				<h:outputText value="Dias" />
				<h:outputText value="Percentual" />
				<h:outputText value="" />
				<h:outputText value="" />				
				<h:inputText 
					style="width:100px;" required="true"
					requiredMessage=""/>
				<h:inputText 
					style="width:100px;" required="true"
					requiredMessage=""/>
				<h:inputText 
					style="width:100px;" required="true"
					requiredMessage=""/>
				<p:commandButton icon="ui-icon-plus"/>
				<p:commandButton icon="ui-icon-minus" />
		</h:panelGrid>
		
		<p:dataTable style="width:420px; padding-top:10px;" >
				<p:column headerText="Número" width="100">				
				</p:column>
				
				<p:column headerText="Dias" width="100">				
				</p:column>
				
				<p:column headerText="Percentual" width="100">				
				</p:column>
			</p:dataTable>
		
		<div id="popup-buttons" style="padding-bottom: 10px;padding-right: 15px; padding-top: 10px; text-align: right;">
			<p:commandButton value="Salvar" style="height:28px;"/>
			<p:commandButton value="Limpar" style="height:28px;"/>
			<p:commandButton value="Cancelar" style="height:28px;" onclick="dialogAddCondicaoPagamento.hide();"/>
		</div>
		
		<ui:include src="../condicaoPagamento/listFormaPagamento.xhtml"></ui:include>
	</h:form>
	
</p:dialog>